#ifndef SERVER_H
#define SERVER_H

#include <QWidget>
#include <QNetworkInterface>//网络信息
#include <QHostAddress>//id地址
#include <QTcpServer> //tcp协议
#include <QTcpSocket> //socket套接字
#include <QDebug>
#include <QThread>
namespace Ui {
class server;
}

class server : public QWidget
{
    Q_OBJECT

public:
    explicit server(QWidget *parent = nullptr);
    ~server();
    QTcpServer *myserver;
    QTcpSocket *mysocket;

private slots:
    void newconnect();
    void readsocket();

    void on_send_pushButton_clicked();

private:
    Ui::server *ui;
};

#endif // SERVER_H
